import request from '@/utils/request'

// 查询每日新闻联播列表
export function listMynews(query) {
  return request({
    url: '/system/mynews/list',
    method: 'get',
    params: query
  })
}

// 查询每日新闻联播详细
export function getMynews(id) {
  return request({
    url: '/system/mynews/' + id,
    method: 'get'
  })
}

// 新增每日新闻联播
export function addMynews(data) {
  return request({
    url: '/system/mynews',
    method: 'post',
    data: data
  })
}

// 修改每日新闻联播
export function updateMynews(data) {
  return request({
    url: '/system/mynews',
    method: 'put',
    data: data
  })
}

// 删除每日新闻联播
export function delMynews(id) {
  return request({
    url: '/system/mynews/' + id,
    method: 'delete'
  })
}
